package com.turning.resume.controller;


import com.turning.resume.common.Result;
import com.turning.resume.dto.ResumeDTO;
import com.turning.resume.service.ResumeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

//import javax.validation.Valid


@RestController
@Api(tags = "简历接口")
@RequiredArgsConstructor
public class ResumeController {


    private final ResumeService resumeService;

    @PostMapping("/resume")
    @ApiOperation("填写简历接口")
    public Result resume(/*@Valid*/ @RequestBody ResumeDTO resumeDTO) {
       return resumeService.insert(resumeDTO);

    }
}
